package com.briup.day06;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @author 谭梦寻
 * @version 1.1
 */
public class Bag {
    private int num;
    private String[] books;

    public Bag() {
    }

    public Bag(int num, String[] books) {
        this.num = num;
        this.books = books;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String[] getBooks() {
        return books;
    }

    public void setBooks(String[] books) {
        this.books = books;
    }

    @Override
    public String toString() {
        return "Bag{" +
                "num=" + num +
                ", books=" + Arrays.toString(books) +
                '}';
    }
}

